<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style_new.css"/>
<script type="text/javascript" src="<%=request.getContextPath() %>/jsFile/js_new/nav.js"></script>
<script type="text/javascript">var _menus ={<%=request.getSession().getAttribute("sbAccroinaccordionMenu")%>};</script>
<script type="text/javascript">
$(function() {
  var tree = $("#yuyunav");
  for (var name in _menus){
		 var title = _menus[name][0];
		 var li = '';
		 var count = title.menus.length;
		 for(var i = 0; i < count; i++){
			 li += '<li><a onclick=gogogo("'+title.menus[i].url+'")>'+title.menus[i].menuname+'</a></li>';
		 }	
		 tree.append('<li ><a href="#">'+title.menuname+'</a><ul>'+li+'</ul></li>');
	}
  
  $("#currentDate").text(currentDate());
  
})

function gogogo(url){
	//var frame = document.getElementById("contentFrame");
	//frame.src=url;
	location.href = url;
}

function currentDate(){ 
    var now = new Date();       
    var year = now.getFullYear();
    var month = now.getMonth() + 1;
    var day = now.getDate();
   
    var today = year + "-";       
    if(month < 10)
        today += "0";       
    today += month + "-";       
    if(day < 10)
        today += "0";           
    today += day;       
    return(today); 
} 

</script>
<div class="top_banner">
	<div class="main_max">
	  <div class="logo_tt"></div>
	  <div class="welcome_bg">今天是<span id="currentDate"style="width: 70px;"/></span>，你好！</div>
	  <div class="quite"><a href="#">关于我们</a>   <a href="#">帮助</a>    <a href="<%=request.getContextPath() %>/index.jsp">退出</a></div>
  	</div>
  	<div class="navbox_out">
		<ul id="yuyunav"></ul>
  	</div>
</div>

